package org.zjj.dao.impl;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;
import org.zjj.dao.NameDao;

@Repository("nameDao")//交由Spring管理
public class NameDaoImpl implements NameDao {

    @Value("{name}")
    private String name;

    @Value("{sex}")
    private String sex;

    @Value("{age}")
    private int age;

    @Override
    public void showNameDetail() {
        System.out.println(name+"---"+sex+"---"+age);
    }
}
